]> dgit.raspbian.org Git - gnome-shell.git/commit
animation: Prevent spinner animation from resetting
authorVicente Bertolotti <bertolotti2008@gmail.com>
Sat, 25 Apr 2026 01:26:28 +0000 (21:26 -0400)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 25 Apr 2026 12:55:21 +0000 (14:55 +0200)
commit2b1269fee44186f5778007e66f63edafd45eb645
tree29e5894cf73ba76e7d04f6f7cec69e574529d91d
parentc72f260185bea8c30367a06bdadf4f0b26073aec
animation: Prevent spinner animation from resetting

Currently, the search status spinner animation restarts on every
single keystroke while a search is in progress. This occurs because
redundant calls to `play()` replace the previous content and restart
the animation from the beginning.

This commit fixes this by ignoring redundant `play()` and `stop()` calls.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8695

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4191>
js/ui/animation.js